<?php
defined("SMARTY_DIR") or die("restricted acess");

$cid = $_POST['cid'];
if(!cid) header("Location: index.php");
$_SESSION['category_id'] = $cid;
header("Location: index.php?option=test");

?>